home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-11-30 | 4.3 KB | 115 lines | [TEXT/KAHL] |
- The PixelWorldPane Class
- ------------------------
- Version 1.2
-
- SUPERCLASS = CPanorama
-
-
- 1) Description
-
- The CPixelWorldPane class is a subclass of CPanorama that uses a
- CPixelWorld object to display a color or grayscale image that is
- kept offscreen. An offscreen color graphics device (GDevice) and an
- offscreen color graphics port (CGrafPort) are used to maintain this
- offscreen world. This implementation supports 1,2,4 and 8 bit pixel
- depths. Pixel depths of 16 and 32 bits are not currently supported.
- since the current implementation of CPixelWorld
-
- This implementation does not depend upon any 32-Bit QuickDraw features.
- Future versions of the CPixelWorld class will provide support for pixel
- depths of 16 and 32 bits, and for GWorlds under 32-Bit QuickDraw.
-
-
- 2) Creating a PixelWorldPane
-
- After creating an instance of the CPixelWorldPane class, initialize the
- pane by calling the IPixelWorldPane method with the same parameters
- that are normally passed to IPane when initializing a CPane object.
- You must provide two additional parameters as follows:
-
- i) LongRect *aBounds
-
- The bounds rectangle for the offscreen world.
-
- ii) CPixelWorld *aPixelWorld
-
- This is the PixelWorld which will be used to maintain the
- offscreen image. You can create the PixelWorld yourself with
- your own image and color table, or have a blank world created
- for you by passing NULL. If you pass NULL, the pixel depth of the
- blank world will be set to the maximum pixel depth of all screens
- that are currently active on your system. A default color table
- for that pixel depth will be used for the new PixelWorld.
-
-
- 3) Accessing the associated PixelWorld
-
- The GetPixelWorld method returns a reference to the CPixelWorld
- associated with your CPixelWorldPane.
-
-
- 4) Changing to a different PixelWorld
-
- The SetPixelWorld method allows you to assign a different CPixelWorld
- to your CPixelWorldPane. First, you should call GetPixelWorld to get
- the current CPixelWorld assigned to your pane. You must dispose of
- this CPixelWorld yourself. Then you may call the SetPixelWorld method
- to assign a different CPixelWorld to your pane.
-
-
- 5) History
-
- • Version 1.0
-
- Date: January 1, 1992
- Author: Vincent R. Vann, Jr.
- Address: 1901 Brickell Ave, B-410, Miami, FL 33129 (USA)
- Internet: vvann@umbio.med.miami.edu
- Compuserve: 76530,1242
-
- • Version 1.1 (This version number was skipped)
-
- • Version 1.2
-
- Date: June 15, 1992
- Author: Vincent R. Vann, Jr.
-
- Changes:
- [
- - changed class definition to make the superclass CPanorama
- instead of CBitMapPane as in the original implementation.
- - modified the SetPixelWorld method so that the bounds, position,
- and origin of the PixelWorldPane are changed to reflect the
- new PixelWorld's coordinates. This method also refreshes the
- pane so that the image of the new PixelWorld will be drawn.
- ]
-
-
- 6) License Agreement
-
- All portions of this source code are property of Vincent R. Vann, Jr.
- I, Vincent R. Vann, Jr., grant you the right to freely distribute this
- source code and to use all or part of this source code in all software
- including commercial, freeware, shareware and private applications.
- However, all software that uses any part of or all of this source code
- must display a copyright notice indicating that either all of or
- portions of this source code are used in the software. I also grant
- you permission to alter and make improvements to this source code, but
- only if all modifications are returned to me by whatever means are
- available, either in written or electronic form. You must also accept
- that I retain the right to include any part of your modifications or
- all of your modifications in future releases of this source code. The
- description and version history sections of the *.info files may be
- ammended for documentation purposes. This license agreement and the
- copyright notice below must be maintained intact and must be included
- with all distributions of this source code at all times.
-
-
- 7) Copyright Notice
-
- This implementation is based in part on material copyrighted by
- Symantec Corporation and Apple Computer, Inc.
-
- Copyright © 1992 Vincent R. Vann, Jr. All rights reserved.
-
-